package com.gzh.core.chche.service.dto;

import com.gzh.core.chche.dao.po.TuserEntityCache;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;

/**
 * @Author guanzh
 * @Date 2022/1/11 15:04
 * @Description
 */
@Setter
@Getter
@ToString
public class User {
    //用户id
    private Integer userId;
    //电话
    private String tel;
    //邮箱
    private String mail;
    //密码
    private String password;
    //全称
    private String fullName;
    //性别
    private Integer sex;
    //学校
    private Integer schoolId;
    //学号
    private Integer stuId;
    //权限id
    private Integer roleId;
    //图片头像
    private String img;

    public User(TuserEntityCache item) {
        this.userId = item.getUserId();
        this.tel = item.getTel();
        this.mail = item.getMail();
        this.password = item.getPassword();
        this.fullName = item.getFullName();
        this.sex = item.getSex();
        this.schoolId = item.getSchoolId();
        this.stuId = item.getStuId();
        this.roleId = item.getRoleId();
        this.img = item.getImg();
    }
}
